import request from "../../utils/requistApi.js";

//广场首页
export function fashionplay(data) {
    return request({
        url: `/dpl/v2/funplay/${data}`,
        method: "get",
        // data,
    });
}

//查找帖子详情
export function funpaly(data) {
    return request({
        url: `/dpl/v2/funplay/info/${data}`,
        method: "get",
        // data,
    });
}
//删除帖子
export function funpalyDel(data) {
    return request({
        url: `/dpl/v2/funplay/${data}`,
        method: "delete",
        // data,
    });
}

//查找我发布的帖子
export function funpalyMe(data) {
    return request({
        url: `/dpl/v2/funplay/of/me/${data}`,
        method: "get",
        // data,
    });
}

//对帖子点赞和取消点赞
export function funpalyLike(data) {
    return request({
        url: `/dpl/v2/funplay/like/${data.funplaycode}/${data.userCodeWithFun}`,
        method: "put",
        // data,
    });
}

//关注和取关
export function attentionAndNot(data) {
    return request({
        url: `/dpl/v2/funfollow/${data.followUserCode}/${data.isFollow}`,
        method: "put",
        // data,
    });
}

//获取关注通知列表
export function noticeFollow(data) {
    return request({
        url: `/dpl/v2/notice/follow`,
        method: "get",
        // data,
    });
}

//获取点赞消息通知
export function noticeLikes(data) {
    return request({
        url: `/dpl/v2/notice/likes`,
        method: "get",
        // data,
    });
}

//获取评论的通知
export function noticeComment(data) {
    return request({
        url: `/dpl/v2/notice/comment`,
        method: "get",
        // data,
    });
}
//获取官方通知
export function official(data) {
    return request({
        url: `/dpl/v2/notice/official`,
        method: "get",
        // data,
    });
}
//获取举报反馈的通知（系统消息）
export function report(data) {
    return request({
        url: `/dpl/v2/notice/report`,
        method: "get",
        // data,
    });
}
//推荐帖子相关内容
export function dynamic(data) {
    return request({
        url: `/dpl/v2/funplay/dynamic/${data}`,
        method: "get",
        // data,
    });
}

//获取关注列表
// export function funfollow(data) {
//     return request({
//         url: `/dpl/v2/funfollow/${data.followUserCode}/${data.isFollow}`,
//         method: "put",
//         // data,
//     });
// }